import request from '@/utils/request'

// 查询节假日历列表
export function listHolidayInfo(query) {
  return request({
    url: '/crmsys/holidayInfo/list',
    method: 'get',
    params: query
  })
}

// 查询节假日历详细
export function getHolidayInfo(holiday) {
  return request({
    url: '/crmsys/holidayInfo/' + holiday,
    method: 'get'
  })
}

// 新增节假日历
export function addHolidayInfo(data) {
  return request({
    url: '/crmsys/holidayInfo',
    method: 'post',
    data: data
  })
}

// 修改节假日历
export function updateHolidayInfo(data) {
  return request({
    url: '/crmsys/holidayInfo',
    method: 'put',
    data: data
  })
}

// 删除节假日历
export function delHolidayInfo(holiday) {
  return request({
    url: '/crmsys/holidayInfo/' + holiday,
    method: 'delete'
  })
}
